package com.webwork.mood.record.service;

import java.util.List;

import com.webwork.mood.record.dataobject.MoodRecord;
import com.webwork.mood.record.dataobject.MoodScore;
import com.webwork.mood.util.Paging;

public interface MoodService {

	public void insert(MoodRecord record);
	
	public void update(MoodRecord record);

	public List<MoodRecord> query(MoodRecord record);

	public List<MoodRecord> query(MoodRecord record, Paging page);

	public MoodRecord get(String recordId);
	
	public int count(MoodRecord record);

	public List<MoodScore> getMoodScoreTable(long startTime, long endTime);

	public Object getMoodScoreLine(long startTime, long endTime);

	public String getRule();

}